package demo1;

import demo1.Bike;
import demo1.Car;
import demo1.Vehicle;

public class Test07 {
    public static void main(String[] args) {
        Vehicle v=new Vehicle();
        v.setMake("兰博基尼");
        v.setModel(7);
        v.drive();
        System.out.println(v.getMake());
        System.out.println(v.getModel(7));
        Car c=new Car();
        c.setMake("轿车");
        c.setModel(1);
        c.drive();
        System.out.println(c.getMake());
        System.out.println(c.getModel(1));
        Bike b=new Bike();
        b.setMake("单车");
        b.setModel(2);
        b.drive();
        System.out.println(b.getMake());
        System.out.println(b.getModel(2) );

    }
}
